home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-03 / qbwiz13.zip / SOURCE.ZIP / REDIR.ASM < prev    next >
Assembly Source File  |  1992-07-14  |  2KB  |  52 lines

  1. comment #
  2.  
  3.    +----------------------------------------------------------------------+
  4.    |                                                                      |
  5.    |         QBWiz  Copyright (c) 1990-1992  Thomas G. Hanlin III         |
  6.    |                                                                      |
  7.    |                       QuickBasic Access Library                      |
  8.    |                                                                      |
  9.    +----------------------------------------------------------------------+
  10.  
  11. #
  12.  
  13. public  REDIRIN, REDIROUT
  14.  
  15.  
  16. .model medium
  17.  
  18. .code
  19.  
  20.  
  21.  
  22. REDIROUT      proc                     ; see if output is redirected
  23.               mov            al,b$IOFLAG    ;
  24.               shr            ax,1           ;
  25.               shr            ax,1           ;
  26.               mov            ax,0           ;
  27.               rcl            ax,1           ;
  28.               neg            ax             ;
  29.               ret                           ;
  30. REDIROUT      endp                     ; see if output is redirected
  31.  
  32.  
  33.  
  34. REDIRIN       proc                     ; see if input is redirected
  35.               mov            al,b$IOFLAG    ;
  36.               shr            ax,1           ;
  37.               mov            ax,0           ;
  38.               rcl            ax,1           ;
  39.               neg            ax             ;
  40.               ret                           ;
  41. REDIRIN       endp                     ; see if input is redirected
  42.  
  43.  
  44.  
  45. .data
  46.  
  47. extrn  b$IOFLAG: byte
  48.  
  49.  
  50.  
  51.               end
  52.